package com.biz.primus.ms.member.trans;

import com.biz.primus.model.member.vo.MemberFavouriteVo;
import com.biz.primus.ms.member.dao.ro.MemberFavouriteRo;
import com.google.common.base.Function;
import org.springframework.beans.BeanUtils;

/**
 * po转vo
 * @author jun.liu
 * @date 2017年10月23日
 * @reviewer
 * @see
 */
public class MemberFavouriteRoToMemberFavouriteVo implements Function<MemberFavouriteRo, MemberFavouriteVo>
{
    @Override
    public MemberFavouriteVo apply(MemberFavouriteRo ro)
    {
        MemberFavouriteVo vo = new MemberFavouriteVo();
        if (ro != null)
        {
            BeanUtils.copyProperties(ro, vo);
        }
        return vo;
    }

}
